<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>支付10秒倒计时</title>
</head>
<style>
    div{
        width: 200px;
        height: 300px;
        background-color: aqua;
        padding: 30px;
        margin: auto;

    }
    button{
        width: 150px;
        height: 30px;

    }

</style>
<body>
    <div>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p>商品：前端课程</p>
        <p><button>支付</button></p>        <p><button>取消</button></p>



    </div>
    <script>
        document.getElementsByTagName('button')[0].onclick = function(){
            console.log("nizhenniubiu");
            let a = window.confirm("您确定要支付吗？")
            if(a){
                location.href = "./css1-2.html"

            }

        }


    </script>
    
</body>
</html>